local hx__yizhong = fk.CreateSkill {
  name = "hx__yizhong",
  tags = { Skill.Compulsory },
}

hx__yizhong:addEffect(fk.PreCardEffect, {
  anim_type = "defensive",
  can_trigger = function(self, event, target, player, data)
    return data.to == player and data.card.color ~= Card.Red and data.card.is_damage_card and player:hasSkill(hx__yizhong.name)
  end,
  on_use = function (self, event, target, player, data)
    data.nullified = true
  end,
})

return hx__yizhong
